<?php
date_default_timezone_set("Asia/Shanghai");
include 'functions.php';
include 'db.php';//数据库连接

$start = strtotime(date('Y-m-d 00:00:00'))-3600*24;
$end = $start+3600*24;
for($i = 0; $i < 100; $i++){
	$sql = "INSERT INTO ych_account_log SELECT * from ych_account_log_$i where add_time>=$start and add_time<$end";
	mysql_query($sql, $conn);
}
echo "over";